package com.abocode.aichat.server.context.delivery.reply;

import com.abocode.aichat.data.MessageStanza;
import io.netty.channel.Channel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Arrays;
import java.util.List;

/**
 * @author guanxf
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Reply {
    private List<Channel> channels;
    private MessageStanza messageStanza;

    public Reply(Channel channel, MessageStanza messageStanza) {
        this.channels = Arrays.asList(channel);
        this.messageStanza = messageStanza;
    }
}
